Part Number Hot Search : 
ST21Y068 ONDUC FAM1503 PD100F2 4734A H474K 7C102 PL2305
Product Description
Full Text Search
 

To Download DS2436Z Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 29 092199 features unique 1-wire? interface requires only one port pin for communication provides unique 64-bit identification number to battery packs on-board a/d converter monitors battery voltage for end-of-charge and end-of- discharge determination eliminates thermistors by sensing battery temperature on-chip 256-bit nonvolatile user memory available for storage of data such as fuel gauge and manufacturing information 2-byte cycle counter operating range of -40c to +85c applications include portable computers, portable/ cellular phones, consumer electronics, and handheld instrumentation package outline DS2436Z 150-mil, 8-pin soic pin description gnd - ground dq - data in/out v dd - supply/battery connection description the ds2436 battery identification/monitor chip provides a convenient method of tagging and identifying battery packs, by manufacturer, chemistry, or other identifying parameters. the ds2436 allows the battery pack to be coded with a unique 64-bit rom id and a 16-bit manufacturer id, and also store information regarding the battery life and charge/ discharge characteristics in its nonvolatile memory. the ds2436 also performs the essential function of monitoring battery temperature, without the need for a thermistor in the battery pack. a cycle counter assists to determine the remaining cycle life of the battery. finally, the ds2436 measures battery voltage and sends that measured value to a host cpu for use in end-of-charge or end-of-discharge determination or basic fuel gauge operation. information is sent to/from the ds2436 over a 1-wire interface, so that battery packs need only have three output connectors: power, ground, and the 1-wire interface. ds2436 battery id/monitor chip p reliminary www.dalsemi.com dallas ds2436 gnd dq vdd ds2436b to-92 package bottom 2 3 1 v dd nc nc nc nc nc dq gnd 1 2 3 4 8 7 6 5
ds2436 2 of 29 detailed pin description symbol description gnd ground pin dq data input/output pin for 1-wire communication port v dd supply pin - input power supply (battery connection) nc no connect overview the block diagram of figure 1 shows the major components of the ds2436. the ds2436 has seven major data components: 1) 64-bit lasered rom id, 2) scratchpad memory, 3) nonvolatile memory, 4) on-board sram, 5) temperature sensor, 6) battery voltage a/d converter, and 7)16-bit manufacturer id register. communication to the ds2436 is via a 1-wire port. with the 1-wire port, the memory and control functions will not be available until the rom function protocol has been established. the master must first provide one of four rom function commands: 1) read rom, 2) match rom, 3) search rom, or 4) skip rom. these commands operate on the 64-bit rom id portion of each device and can identify a specific device if many are present on the 1-wire line as well as indicate to the bus master how many and what types of devices are present. after a rom function sequence has been successfully executed, the memory and control functions are accessible. the master may then provide any one of the fifteen memory and control function commands. access to the ds2436 memory is through the 1-wire interface and scratchpad memory. charging parameters and other data such as battery chemistry, fuel gauge information, and other user data may be stored in the ds2436, allowing this information to be permanently stored in the battery pack. parasite power the id rom registers and memory of the ds2436 can be read even when the battery is completely discharged by using parasite-powered operation. when parasite powered, the ds2436 ?steals? power from the dq line whenever it is high. dq will provide sufficient power for read operations as long as specified timing and voltage requirements are met (see the section titled ?1-wire bus system?).
ds2436 3 of 29 ds2436 block diagram figure 1 a/d converter 64-bit rom id and 1-wire port control logic and memory fun c tion control temperature register v dd dq status register voltage register manufacturer id 256-bit scratchpad 64 -bit scratchpad 256-bit nonvolatile ram 64 -bit ram g d d tempera tu re measuring circuit ry cycle counter
ds2436 4 of 29 ds2436 memory partitioning figure 2 lsb lsb lsb lsb msb msb msb msb lsb msb
ds2436 5 of 29 ds2436 memory map figure 3 byte address page 1 user byte 0 0 0h user byte 1 0 1h user byte 2 0 2h user byte 3 0 3h sp1 user byte 4 0 4h or user byte 5 0 5h nv1 user byte 6 0 6h user byte 7 0 7h user byte 8 08h user byte 9 09h user byte 10 0a h user byte 11 0bh user byte 12 0ch user byte 13 0dh user byte 14 0eh user byte 15 0fh user byte 16 10h user byte 17 11h user byte 18 12h user byte 19 13h user byte 20 14h user byte 21 15h user byte 22 16h user byte 23 17h 24 18h reserved address space 31 1fh
ds2436 6 of 29 ds2436 memory map (cont?d) figure 3 byte address page 2 user byte 0 20h user byte 1 21h user byte 2 22h user byte 3 23h sp2 user byte 4 24h or user byte 5 25h nv2 user byte 6 26h user byte 7 27h 8 28h reserved address space 31 3fh
ds2436 7 of 29 ds2436 memory map (cont?d) figure 3 byte address page 3 user byte 0 40h user byte 1 41h user byte 2 42h user byte 3 43h sp3 user byte 4 44h or user byte 5 45h sram user byte 6 46h user byte 7 47h reserved address space 31 5fh
ds2436 8 of 29 ds2436 memory map (cont?d) figure 3 byte address page 4 temperature lsb 0 60h temperature msb 1 61h status lsb 2 62h registers status lsb 3 63h 4 64h 5 65h 6 66h 7 67h 8 68h 9 69h 10 6ah 11 6bh 12 6ch 13 6dh 14 6eh 15 6fh 16 70h 17 71h 18 72h 19 73h 20 74h 21 75h reserved address space 22 76h voltage lsb 23 77h voltage msb 24 78h reserved address space 31 7fh
ds2436 9 of 29 ds2436 memory map (cont?d) figure 3 byte address page 5 mfg id lsb 0 80h mfg id msb 1 81h cycle ctr lsb 2 82h registers cycle ctr lsb 3 83h reserved address space 31 9fh
ds2436 10 of 29 memory the ds2436?s memory is divided into five pages, each page filling 32 bytes of address space. not all of the available addresses are used, however. refer to the memory map of figure 3 to see actual addresses which are available. the first three pages of memory consist of a scratchpad ram and either eeprom (pages 1 and 2) or sram (page 3). the scratchpads help insure data integrity when communicating over the 1-wire bus. data is first written to the scratchpad where it can be read back. after the data has been verified, a copy scratchpad command will transfer the data to the eeprom or sram. this process insures data integrity when modifying the memory. the fourth page of memory consists of registers which contain the temperature, voltage, and status registers. these registers are made from sram cells, except for the lock bit in the status register which is implemented in eeprom. the fifth page of memory holds the manufacturer id and cycle count registers implemented in eeprom. page 1 the first page of memory has 24 bytes. it consists of scratchpad ram and nonvolatile eeprom memory. these 24 bytes may be used to store any data, such as: battery chemistry descriptors, manufacturing lot codes, etc. this page may be locked to prevent data stored here from being changed inadvertently. the nonvolatile and the scratchpad portions of this page are organized identically, as shown in figure 3. in this page, these two portions are referred to as nv1 and sp1, respectively. page 2 the second page of memory has 8 bytes. it consists of a scratchpad ram and a nonvolatile eeprom memory. these 8 bytes may be used to store additional data. in contrast to page 1 memory, the lock function is not available for page 2. page 3 the third page of memory has 8 bytes. it consists of a scratchpad ram and an sram memory. this address space may be used to store additional data, provided that, should the battery discharge completely and power to the ds2436 is lost, this data may also be lost without serious repercussions. data which must remain even if power to the ds2436 is lost should be placed in either page 1 or page 2. prefer this section of memory to store fuel gauge and self discharge information. if the battery dies and this information is lost, no serious consequences will result since the user can easily determine that the battery is dead. page 4 the fourth page of memory is used by the ds2436 to store the battery temperature and voltage. a 2-byte status register informs of conversion progress and memory lock state.
ds2436 11 of 29 temperature registers (60h-61h) the ds2436 can measure temperature without external components. the resulting temperature measurement is placed in a 2-byte temperature register. this register is implemented in sram, and therefore will hold data until the battery voltage falls below minimum v dd . the temperature reading is provided in a 13-bit, two?s complement format, with 0.03125c resolution. table 1 describes the exact relationship of output data to measured temperature. the data is transmitted serially over the 1-wire interface. the ds2436 can measure temperature over the range of -40c to +85c in 0.03125c increments. for fahrenheit usage, a lookup table or conversion factor must be used. note that temperature is represented in the ds2436 in terms of a 0.03125c lsb, yielding the following 13-bit format: msb lsb s 2 6 2 5 2 4 2 3 2 2 2 1 2 0 2 -1 2 -2 2 -3 2 -4 2 -5 0 0 0 unit =1c the msb of the temperature register contains the integer portion of temperature value. temperature/data relationships table 1 temperature digital output (binary) digital output (hex) +125 c 01111101 00000000 7b00 +25.0625 c 00011001 00010000 1910 +1/2 c 00000000 10000000 0080 0 c 00000000 00000000 0000 -1/2 c 11111111 10000000 ff80 -25.0625 c 11100110 11110000 e6f0 -55 c 11001001 00000000 c900
ds2436 12 of 29 status register (62h-63h) the status register is a 2-byte read only register at addresses 62h and 63h. address 62h is the least significant byte of the status register and is currently the only address with defined status bits; the other byte at address 63h is reserved for future use. the status register is formatted as follows: msb lsb 0 0 0 0 adb lock nvb tb 62h 1 1 1 1 1 1 1 1 63h where tb = temperature busy flag. 1 = temperature conversion in progress; 0 = temperature conversion complete, valid data in temperature register. nvb = nonvol atile memory busy flag. 1 = copy from scratchpad to eeprom in progress, 0 = nonvolatile memory is not busy. a copy to nv ram may take from 2 ms to 10 ms (taking longer at lower supply voltages). lock = 1 indicates that nv1 is locked; 0 indicates that nv1 is unlocked. this status bit is implemented in eeprom in order to preserve its state even when the battery is completely discharged. adb = a/d converter busy flag. 1 = analog-to-digital conversion in progress on battery voltage; 0 = conversion complete, no measurement being made. an a/d conversion takes a maximum of 10 ms. voltage register (77h-78h) the onboard analog-to-digital converter (adc) has 10 bits of resolution and will perform a conversion when the ds2436 receives the command protocol (convert v) [b4h]. the result of this measurement is placed in the 2-byte voltage register (see memory map). the range for the ds2436 adc is 0v to 10v; this range is suitable for nicd or nimh battery packs up to six cells, and for lithium ion battery packs of two cells. the full-scale range of the adc is scaled to 10.24v, resulting in a resolution of 10 mv. while the adc has a range that extends to 0v, it is important to note that the battery voltage is also the supply voltage to the ds2436. as such, the accuracy of the adc begins to degrade below battery voltages of 2.4volts, and the ability to make conversions is limited by the operating voltage range of the ds2436. voltage is expressed in this register in straight binary format, as outlined in table 2. note that while codes exits for values below 2.4volts, accuracy of the adc and the limitation on the ds2436?s supply voltage make it unlikely that these values would be used in actual practice.
ds2436 13 of 29 voltage/data relationship table 2 temperature digital output (binary) digital output (hex) 0.010v 0000 0000 0000 0001 0001 2.4v 0000 0001 1111 0000 00f0 3.6v 0000 0001 0110 1000 0168 5v 0000 0001 1111 0100 01f4 7.2v 0000 0010 1101 0000 02d0 9.99v 0000 0011 1110 0111 03e7 10v 0000 0011 1110 1000 03e8 page 5 the fifth page of memory holds the manufacturer id number, as well as a 2-byte counter for counting the number of battery charge/discharge cycles. manufacturer id register (80h and 81h) the manufacturer id register is a 16-bit laser rom register that can contain a unique identification code if purchased from dallas semiconductor. this id number is programmed by dallas semiconductor, is unchangeable, and is unique to each customer. this id number may be used to assure that batteries containing a ds2436 have the same manufacturer id number as a charger configured to operate with that battery pack. this feature may be used to prevent charging of batteries for which the charging circuit has not been designed. cycle counter (82h and 83h) the cycle counter gives an indication of the number of charge/discharge cycles the battery pack has been through. this nonvolatile register is incremented by the user through the use of a protocol to the ds2436 and is reset by another protocol. the counter is a straight binary counter, formatted as follows: cycle counter msb 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 82h 2 15 2 14 2 13 2 12 2 11 2 10 2 9 2 8 83h the cycle counter does not roll over when it reaches its maximum value (ffffh). memory function commands 64-bit lasered rom each ds2436 contains a unique rom code that is 64 bits long. the first 8 bits are a 1-wire family code (ds2436 code is 1bh). the next 48 bits are a unique serial number. the last 8 bits are a cyclic redundancy check (crc) of the first 56 bits. (see figure 4.) the 64-bit rom and rom function control section allow the ds2436 to operate as a 1-wire device and follow the 1-wire protocol detailed in the section ?1-wire bus system.? the functions required to control sections of the ds2436 are not accessible until the rom function protocol has been satisfied. this protocol is described in the rom function protocol flow chart (figure 5). the 1-wire bus master must first provide one of four rom function commands: 1) read rom, 2) match rom, 3) search rom, or 4) skip rom. after a rom function sequence has been successfully executed, the functions specific to the ds2436 are accessible. the bus master may then provide one of the 15 memory and control function commands.
ds2436 14 of 29 crc generation the ds2436 has an 8-bit crc stored in the most significant byte of the 64-bit rom. the bus master can compute a crc value from the first 56 bits of the 64-bit rom and compare it to the value stored within the ds2436 to determine if the rom data has been received error-free by the bus master. additionally, each page read appends one crc byte. the equivalent polynomial function of this crc is: crc = x 8 + x 5 + x 4 + 1 x n = bit at the n-th stage + = " exclusive-or " function the ds2436 also generates an 8-bit crc value using the same polynomial function shown above and provides this value to the bus master to validate the transfer of data bytes. in each case where a crc is used for data transfer validation, the bus master must calculate a crc value using the polynomial function given above and compare the calculated value to either the 8-bit crc value stored in the 64-bit rom portion of the ds2436 (for rom reads) or the 8-bit crc value computed within the ds2436 scratchpad (which is read as a 33rd byte when the scratchpad is read). the comparison of crc values and decision to continue with an operation are determined entirely by the bus master. there is no circuitry inside the ds2436 that prevents a command sequence from proceeding if the crc stored in or calculated by the ds2436 does not match the value generated by the bus master. proper use of the crc can result in a communication channel with a very high level of integrity. the 1-wire crc can be generated using a polynomial generator consisting of a shift register and xor gates as shown in figure 6. additional information about the dallas 1-wire crc is available in an application note entitled ?understanding and using cyclic redundancy checks with dallas semiconductor touch memory products? (app note #27). in the circuit in figure 6, the shift register bits are initialized to 0. then, starting with the least significant bit of the family code, 1 bit at a time is shifted in. after the 8th bit of the family code has been entered, the serial number is entered. after the 48th bit of the serial number has been entered, the shift register contains the crc value. shifting in the 8 bits of crc should return the shift register to all 0s. 64-bit lasered rom figure 4 8-bit crc code 48-bit serial number 8-bit family code (1b) msb lsb msb lsb msb lsb
ds2436 15 of 29 rom functions flow chart figure 5
ds2436 16 of 29 1-wire crc code figure 6 1-wire bus system the 1-wire bus is a system which has a single bus master and one or more slaves. the ds2436 behaves as a slave. all data is communicated lsb first. the discussion of this bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-wire signaling (signal types and timing). hardware configuration the 1-wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. to facilitate this, each device attached to the 1-wire bus must have open drain or three-state outputs. the 1-wire port of the ds2436 (dq pin) is open drain with an internal circuit equivalent to that shown in figure 7. a multidrop bus consists of a 1-wire bus with multiple slaves attached. the 1-wire bus requires a pullup resistor of approximately 5 k w . the idle state for the 1-wire bus is high. if for any reason a transaction needs to be suspended, the bus must be left in the idle state for the transaction to resume. infinite recovery time can occur between bits so long as the 1-wire bus is in the inactive (high) state during the recovery period. if this does not occur and the bus is left low for more than 480 m s, all components on the bus will be reset. transaction sequence the protocol for accessing the ds2436 via the 1-wire port is as follows: initialization rom function command memory function command transaction/data initialization all transactions on the 1-wire bus begin with an initialization sequence. the initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). the presence pulse lets the bus master know that the ds2436 is on the bus and is ready to operate. for more details, see the ?1-wire signaling? section. rom function commands once the bus master has detected a presence, it can issue one of the four rom function commands. all rom function commands are 8 bits long. a list of these commands follows (refer to flowchart in figure 5).
ds2436 17 of 29 hardware configuration figure 7 read rom [33h] this command allows the bus master to read the ds2436?s 8-bit family code, unique 48-bit serial number, and 8-bit crc. this command can only be used if there is a single ds2436 on the bus. if more than one slave is present on the bus, a data collision will occur when all slaves try to transmit at the same time (open drain will produce a wired-and result). match rom [55h] the match rom command followed by a 64-bit rom sequence allows the bus master to address a specific ds2436 on a multidrop bus. only the ds2436 that exactly matches the 64-bit rom sequence will respond to the following memory function command. all slaves that do not match the 64-bit rom sequence will wait for a reset pulse. this command can be used with a single or multiple devices on the bus. skip rom [cch] this command can save time in a single drop bus system by allowing the bus master to access the memory functions without providing the 64-bit rom code. if more than one slave is present on the bus and a read command is issued following the skip rom command, data collision will occur on the bus as multiple slaves transmit simultaneously (open drain pulldowns will produce a wired-and result). search rom [f0h] when a system is initially brought up, the bus master might not know the number of devices on the 1- wire bus or their 64-bit rom codes. the search rom command allows the bus master to use a process of elimination to identify the 64-bit rom codes of all slave devices on the bus. example of a rom search the rom search process is the repetition of a simple, three-step routine: read a bit, read the complement of the bit, then write the desired value of that bit. the bus master performs this simple, three-step routine on each bit of the rom. after one complete pass, the bus master knows the contents of the rom in one device. the remaining number of devices and their rom codes may be identified by additional passes. the following example of the rom search process assumes four different devices are connected to the same 1-wire bus. the rom data of the four devices is as shown: rom1 00110101... rom2 10101010... rom3 11110101... rom4 00010001...
ds2436 18 of 29 the search process is as follows: 1. the bus master begins the initialization sequence by issuing a reset pulse. the slave devices respond by issuing simultaneous presence pulses. 2. the bus master will then issue the search rom command on the 1-wire bus. 3. the bus master reads a bit from the 1-wire bus. each device will respond by placing the value of the first bit of their respective rom data onto the 1-wire bus. rom1 and rom4 will place a 0 onto the 1-wire bus, i.e., pull it low. rom2 and rom3 will place a one onto the 1-wire bus by allowing the line to stay high. the result is a logical and of all devices on the line, therefore the bus master sees a 0. the bus master reads another bit. since the search rom data command is being executed, all of the devices on the 1-wire bus respond to this second read by placing the complement of the first bit of their respective rom data onto the 1-wire bus. rom1 and rom4 will place a 1 onto the 1-wire, allowing the line to stay high. rom2 and rom3 will place a 0 onto the 1-wire; thus it will be pulled low. the bus master again observes a 0 for the complement of the first rom data bit. the bus master has determined that there are some devices on the 1-wire bus that have a 0 in the first position and others that have a 1. the data obtained from the two reads of the three-step routine have the following interpretations: 00 there are still devices attached which have conflicting bits in this position. 01 all devices still coupled have a 0 bit in this bit position. 10 all devices still coupled have a 1 bit in this bit position. 11 there are no devices attached to the 1-wire bus. 4. the bus master writes a 0. this deselects rom2 and rom3 for the remainder of this search pass, leaving only rom1 and rom4 connected to the 1-wire bus. 5. the bus master performs two more reads and receives a 0 bit followed by a 1-bit. this indicates that all devices still coupled to the bus have 0s as their second rom data bit. 6. the bus master then writes a 0 to keep both rom1 and rom4 coupled. 7. the bus master executes two reads and receives two 0-bits. this indicates that both 1-bits and 0-bits exist as the third bit of the rom data of the attached devices. 8. the bus master writes a 0-bit. this deselects rom1 leaving rom4 as the only device still connected. 9. the bus master reads the remainder of the rom bits for rom4 and continues to access the part if desired. this completes the first pass and uniquely identifies one part on the 1-wire bus. 10. the bus master starts a new rom search sequence by repeating steps 1 through 7. 11. the bus master writes a 1-bit. this deselects rom4, leaving only rom1 still coupled.
ds2436 19 of 29 12. the bus master reads the remainder of the rom bits for rom1 and communicates to the underlying logic if desired. this completes the second rom search pass, in which another of the roms was found. 13. the bus master starts a new rom search by repeating steps 1 through 3. 14. the bus master writes a 1-bit. this deselects rom1 and rom4 for the remainder of this search pass, leaving only rom2 and rom3 coupled to the system. 15. the bus master executes two read time slots and receives two 0s. 16. the bus master writes a 0-bit. this deselects rom3, and leaving only rom2. 17. the bus master reads the remainder of the rom bits for rom2 and communicates to the underlying logic if desired. this completes the third rom search pass, in which another of the roms was found. 18. the bus master starts a new rom search by repeating steps 13 through 15. 19. the bus master writes a 1-bit. this deselects rom2, leaving only rom3. 20. the bus master reads the remainder of the rom bits for rom3 and communicates to the underlying logic if desired. this completes the fourth rom search pass, in which the last of the roms was found. note the following: the bus master learns the unique id number (rom data pattern) of one 1-wire device on each rom search operation. the time required to derive the part?s unique rom code is: 960 m s + (8 + 3 x 64) 61 m s = 13.16 ms the bus master is therefore capable of identifying 75 different 1-wire devices per second. memory function commands the following command protocols are summarized in table 3. page 1 through page 3 commands read scratchpad [11h] this command reads the contents of the scratchpad ram on the ds2436. this command is followed by a start byte address. after issuing this command and providing the start address, the user may begin reading the data. the user may read 32 bytes of data through the end of each scratchpad space, with any reserved data bits reading all logic 1s. if reading occurs through the end of a page, the bus master may issue eight additional read time slots and the ds2436 will respond with an 8-bit crc of all data bytes read from the initial starting byte through the last byte of the page. after the crc is received by the bus master, any subsequent read time slots will appear as logical 1s until a reset pulse is issued. write scratchpad [17h] this command writes to the scratchpad ram on the ds2436. this command is followed by a start byte address. after issuing this command and providing the start address, the user may begin writing data to the ds2436 scratchpad at the starting byte address through the end of the 32-byte scratchpad space.
ds2436 20 of 29 copy sp1 to nv1 [22h] this command copies the entire contents (24 bytes) of scratchpad 1 (sp1) to its corresponding nonvolatile memory (nv1). the eeprom of the ds2436 cannot be written to directly by the bus master; however, the scratchpad ram may be copied to the eeprom. this prevents accidental overwriting of the eeprom and allows the data to be written first to the scratchpad, where it can be read back and verified before copying to the eeprom. this command does not use a start address; the entire contents of the scratchpad will be copied to the nonvolatile ram. the nvb bit will be set when the copy is in progress. nv1 is made with eeprom memory cells that will accept at least 50,000 changes. copy sp2 to nv2 [25h] this command copies the entire contents (8 bytes) of sp2 (user bytes) to its corresponding nonvolatile memory (nv2). this command does not use a start address; the entire contents of sp2 will be copied to nv2. the nvb bit will be set when the copy is in progress. nv2 is made with eeprom type memory cells that will accept at least 50,000 changes. copy sp3 to sram [28h] this command copies the entire contents (8 bytes) of sp3 to its corresponding sram. this command does not use a start address; the entire contents of sp3 will be copied to the sram. copy nv1 to sp1 [71h] this command copies the entire contents (24 bytes) of nv1 to its corresponding scratchpad ram (sp1). this command does not use a start address; the entire contents of nv1 will be copied to sp1. the eeprom of the ds2436 cannot be read directly by the bus master; however, the eeprom may be copied to the scratchpad ram. copy nv2 to sp2 [77h] this command copies the entire contents (8 bytes) of nv2 (user bytes) to its corresponding scratchpad ram (sp2). this command does not use a start address; the entire contents of nv2 will be copied to sp2. the eeprom of the ds2436 cannot be read directly by the bus master; however, the eeprom may be copied to the scratchpad ram. copy sram to sp3 [7ah] this command copies the entire contents (8 bytes) of sram to its corresponding scratchpad ram (sp3). this command does not use a start address; the entire contents of sram will be copied to sp3. the sram of the ds2436 cannot be read directly by the bus master; however, the sram may be copied to the scratchpad ram. lock nv1 [43h] this command prevents copying sp1 to nv1. this is done as an added measure of data security, preventing data from being changed inadvertently. nv1 may still be copied into sp1 while the part is locked. this allows nv1 to be read at any time. however, nv1 cannot be written to through a copy sp1 to nv1 command without first unlocking it . unlock nv1 [44h] this command unlocks nv1, to allow copying sp1 into nv1. this is done as an added measure of data security, preventing data from being changed inadvertently.
ds2436 21 of 29 page 4 and 5 commands convert t [d2h] this command instructs the ds2436 to initiate a temperature conversion cycle. this sets the tb flag. when the temperature conversion is done, the tb flag is reset and the temperature value is placed in the temperature register. while a temperature conversion is taking place, all other memory functions are still available for use, but the temperature register should not be read until the tb flag has been reset. convert v [b4h] this command instructs the ds2436 to initiate a battery voltage analog-to-digital conversion cycle. this sets the adb flag. when the a/d conversion is done, the adb flag is reset and the voltage value is placed in the voltage register. while an a/d conversion is taking place, all other memory functions are still available for use , but the voltage register should not be read until the adb flag has been reset. read registers [b2h] this command reads the contents of the registers in page 4 and 5. this command is followed by a start byte address. after issuing this command and providing the start address, the user may begin reading the data. the user may read data through the end of the register space (through address 78h in page 4, address 83h in page 5), after which the data read will be all logic 1s. increment cycle [b5h] this command increments the value in the cycle counter. this command does not use a start address; no further data is required. time between increments of the cycle counter should not be less than 10 ms. reset cycle counter [b8h] this command is used to reset the cycle counter to 0, if desired.
ds2436 22 of 29 ds2436 command set table 3 instruction description protocol 1-wire bus master status after issuing protocol 1-wire bus data after issuing protocol read scratchpad reads bytes from ds2436 scratchpad 11 rx write scratchpad writes bytes to ds2436 scratchpad 17h tx copy sp1 to nv1 copies entire contents of sp1 to nv1 22h idle { nvb bit in status register=1 until copy complete(2-5 ms,typ) } copy to sp2 to nv2 copies entire contents of sp2 to nv2 25h idle { nvb bit in status register=1 until copy complete(2-5 ms,typ) } copy sp3 to sram copies entire contents to sp3 to sram 28h idle idle copy nv1 to sp1 copies entire contents of nv1 to sp1 71h idle idle copy nv2 to sp2 copies entire contents to nv2 to sp2 77h idle idle copy sram to sp3 copies entire contents of sram to sp3 7ah idle idle lock nv1 locks 24 bytes of sp1 and nv1 from writing 43h idle { nvb bit in status register=1 until lock complete(2-5 ms,typ) } unlock nv1 unlocks 24 bytes of sp1 and nv1 for writing 44h idle { nvb bit in status register=1 until unlock complete(2-5 ms,typ) } read registers reads bytes from temperature, voltage, status and id registers b2 rx reset cycle counter resets cycle counter register to 0 b8h idle { nvb bit in status register=1 until reset complete(2-5 ms,typ) } increment cycle counter increments the value in the cycle counter register b5h idle { nvb bit in status register=1 until increment complete(2- 5 ms,typ) } convert v initiates battery voltage a/d conversion b4h idle { adb bit in status register = 1 until conversion complete } convert t initiates temperature conversion d2h idle { tb bit in status register = 1 until conversion complete }
ds2436 23 of 29 notes: 1. temperature conversion takes up to 10 ms. 2. a/d conversion takes up to 10 ms. 3. temperature and a/d conversions cannot take place simultaneously. i/o signaling the ds2436 requires strict protocols to insure data integrity. the protocol consists of several types of signaling on one line: reset pulse, presence pulse, write 0, write 1, read 0, and read 1. all of these signals, with the exception of the presence pulse, are initiated by the bus master. the initialization sequence required to begin any communication with the ds2436 is shown in figure 8. a reset pulse followed by a presence pulse indicates the ds2436 is ready to send or receive data given the correct rom command and memory function command. the bus master transmits (tx) a reset pulse (a low signal for a minimum of 480 m s). the bus master then releases the line and goes into a receive mode (rx). the 1-wire bus is pulled to a high state via the 5k pullup resistor. after detecting the rising edge on the i/o pin, the ds2436 waits 15-60 m s and then transmits the presence pulse (a low signal for 60-240 m s). read/write time slots ds2436 data is read and written through the use of time slots to manipulate bits and a command word to specify the transaction. write time slots a write time slot is initiated when the host pulls the data line from a high logic level to a low logic level. there are two types of write time slots: write 1 time slots and write 0 time slots. all write time slots must be a minimum of 60 m s in duration with a minimum of a 1 m s recovery time between individual write cycles. the ds2436 samples the i/o line in a window from 15 m s to 60 m s after the i/o line falls. if the line is high, a write 1 occurs. if the line is low, a write 0 occurs (see figure 9). for the host to generate a write 1 time slot, the data line must be pulled to a logic low level and then released, allowing the data line to pull up to a high level within 15 m s after the start of the write time slot. for the host to generate a write 0 time slot, the data line must be pulled to a logic low level and remain low for the duration of the write time slot.
ds2436 24 of 29 read time slots the host generates read time slots when data is to be read from the ds2436. a read time slot is initiated when the host pulls the data line from a logic high level to logic low level. the data line must remain at a low logic level for a minimum of 1 m s; output data from the ds2436 is then valid for the next 14 m s maximum. the host therefore must stop driving the i/o pin low in order to read its state 15 m s from the start of the read slot (see figure 9). by the end of the read time slot, the i/o pin will pull back high via the external pullup resistor. all read time slots must be a minimum of 60 m s in duration with a minimum recovery time of 1 m s between individual read slots. figure 10 shows that the sum of t init , t rc , and t sample must be less than 15 m s. figure 11 shows that system timing margin is maximized by keeping t init and t rc as small as possible and by locating the master sample time towards the end of the 15 m s period. initialization procedure ?reset and presence pulses? figure 8 line type legend: bus master active low ds2436 active low both bus master and ds2436 active low resistor pullup
ds2436 25 of 29 read/write timing diagram figure 9 line type legend: bus master active low ds2436 active low both bus master and ds2436 active low resistor pull up
ds2436 26 of 29 detailed master read ?1? timing figure 10 recommended master read ?1? timing figure 11 line type legend: bus master active low ds2436 active low both bus master and ds2436 active low resistor pullup
ds2436 27 of 29 absolute maximum ratings* voltage on v dd , relative to ground -0.3v to +12v voltage on any other pin relative to ground -0.3v to +7v operating temperature -40c to +85c storage temperature -55c to +125c soldering temperature 260c for 10 seconds * this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. recommended dc operating conditions (-40c to +85c; v dd =2.4v to 10.0v) parameter symbol condition min typ max units notes supply voltage v dd 2.4 10 v data pin dq -0.3 +5.5 v dc electrical characteristics (-40c to +85c; v dd =2.4v to 10.0v) parameter symbol condition min typ max units notes temperature accuracy (=t actual -t measured) 2 c input logic high v ih 2.0 5.5 v input logic low v il -0.3 +0.5 v output sink current i l v dq =0.4v -4.0 ma standby 5 m a active temperature, voltage conversions 100 m a 1 standby current i dd active eeprom writes 1 ma input resistance r i dq line in a high impedance state and i dq =0 500 k w
ds2436 28 of 29 battery voltage monitor (-40c to +85c; v dd =2.4v to 10.0v) parameter symbol condition min typ max units notes resolution 10 bits input voltage range 0 10.0 v 2 total error 2.4v v dd 6v 10 50 mv conversion time 10 ms no missing code temperature range -40 +85 c monotonicity guaranteed ac electrical characteristics: 1-wire interface (-40c to +85c; v dd =2.4v to 10.0v) parameter symbol min typ max units notes temperature conversion time t conv 5 10 ms time slot t slot 60 120 m s recovery time t rec 1 m s write 0 low time t low0 60 120 m s write 1 low time t low1 1 15 m s read data valid t rdv 15 m s reset time high t rsth 480 m s reset time low t rstl 480 960 m s presence detect high t pdhigh 15 60 m s presence detect low t pdlow 60 240 m s capacitance c in/out 25 pf notes: 1. voltage a/d conversions and temperature conversions may not take place simultaneously. 2. voltage may be measured below 2.4 volts, but accuracy degrades in a manner to be determined by characterization.
ds2436 29 of 29 1-wire write 1 time slot 1-wire write 0 time slot 1-wire read 0 time slot 1-wire reset pulse 1-wire presence detect


▲Up To Search▲   

 
Price & Availability of DS2436Z

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X